import { post } from "../../../../utils/fetch";

// 意见配置主题列表查询
export const getCommentConfigList = (data) => {
  return post(`/flow-platform/comment/config/list`, data);
};

// 获取流程列表数据
export const getFlowModelList = (data) => {
    return post('/flow-platform/model/list', data);
}

// 意见配置新增
export const addComment = (data) =>
  post(`/flow-platform/comment/config/add`, data, { messageType: "close" });

// 意见配置编辑
export const editComment = (data) =>
  post(`/flow-platform/comment/config/edit`, data, { messageType: "close" });


// 意见配置删除
export const deleteComment = (data) =>
    post(`/flow-platform/comment/config/delete`, data, { messageType: "close" });

// 状态启用
export const startStatus = (data) =>
  post(`/flow-platform/comment/config/channel/startStatus`, data, {
    messageType: "close",
  });
